<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
// console.log(new Request('http://foo.com', 
//  { method: 'POST' }));
// let r1 = new Request('http://bar.com',{
//     method:"POST"
// })
// let r2 = new Request(r1,{
//     method:"GET"
// });
// console.log(r2);
// let r1 = new Request('http://foo.com',{
//     method:"POST",
//     body:'bar'
// })
let r = new Request('http://wwww.foo.com')
fetch(r);
fetch(r,{
    method:"POST"
})

let r2 = new Request(r1);
console.log(r1);
console.log(r2);
</script>
</html>